<?php
namespace App\Http\Controllers;
use DB;
use App\Http\Controllers\Controller;

class UserController extends Controller {

    /**
     * 显示首页。
     *
     * @return Response
     */
    public function getIndex()
    {
        $user = \DB::select("select * from room limit 1", array());
        
        $user = get_object_vars($user[0]);
        var_dump($user);
    }

    /**
     * 显示关于界面
     *
     * @return Response
     */
    public function getAbout()
    {
        return view('about');
    }
}
?>
